public GameController()
    {
        super("PACMAN BY Amador Navarro");
                
        map = new Map();
        player = new GamePlayer();
        
        int rows = map.getRowLength();
        int columns = map.getColumnLength();
        int[][] cellValues = initCellValues(rows, columns);
        
        scoreboard = new Scoreboard(cellValues[0][0]);
        cellValues[0][0] = 0;
        
        mapCanvas = new MapCanvas(rows, columns, PIXELS, cellValues);
        
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(columns * PIXELS, (rows + 4) * PIXELS);
        setLocationRelativeTo(null);
        
        moveController = new MoveController(map, PIXELS, player);
        mapCanvas.setLocations(moveController.getPlayersLocation());
        
        add(mapCanvas, BorderLayout.CENTER);
        
        addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent key) {
                if (key.getKeyCode() == 80) {
                    if (timer.isRunning()) {
                        timer.stop();
                    } else {
                        timer.restart();
                    }
                }
                moveController.keyPressed(key);
            }
        });
        setFocusable(true);
        setVisible(true);
        start();
    }