private boolean moveSapperAndFillFreeCell(Direction direction) { walkAt.put(sapper.copy(), getMinesNearSapper()); direction.change(sapper); boolean wasHere = walkAt.containsKey(sapper.copy()); return !wasHere; }
@Override public Point getCellPossiblePosition(Direction direction) { return direction.change(sapper.copy()); }