public void parsePicToBoard(BufferedImage pic) {
        board = new char[20][20];
        for (int i = 0; i < 20;i++) {
            for (int j = 0; j < 20; j++) {
                if (new Color(pic.getRGB(i, j)).equals(Color.GREEN)) 
                    board[i][j] = COIN;
                else if (new Color(pic.getRGB(i, j)).equals(Color.WHITE)){
                    playerPos = new Point(i, j);
                    board[i][j] = PLAYER;
                }
                else if (new Color(pic.getRGB(i, j)).equals( Color.RED))
                    board[i][j] = WALL;
                else 
                    board[i][j] = ' ';
            }
        }
    }