public Position findPacman(){
    return this.pacmanPosition;
}

public List<Position> findFoods(){
    List<Position> res = new ArrayList<>();
    for (int i = 0; i < board.length; i++){
        for (int j = 0; j < board[i].length; j++){
            if (board[i][j] == '.'){
                res.add(new Position(i, j));
            }
        }
    }
    return res;
}
