private boolean moveTo(int id, int x, int y) {
		if (x < 0 || x >= N || y < 0 || y >= N) {
			return false;
		}

		switch (gameField[x][y]) {
		case PLAYER:
			return false;
		case EMPTY:
			changePlayerPosition(id, x, y);
			return true;
		case TREASURE:
			changePlayerPosition(id, x, y);
			updateTreasureForPlayer(id, x, y);
			return true;
		case WALL:
			return false;
		default:
			return false;
		}
	}