private boolean insideBounds(Position position) {
        if (position.getX() >= 0 && position.getX() < field.length && position.getY() >= 0 && position.getY() < field[0].length) {
            return true;
        }
        return false;
    }