public void paintComponent(Graphics g) {
        g.setColor(Color.BLACK);
        g.fillRect(0, 0, board.length * 30, getHeight());
        for (int i = 0; i < board.length; i++) {
            for (int j = 0; j < board.length; j++) {
                if (board[i][j] == PLAYER) g.drawImage(imgPlayer, i * 30, j * 30, null);
                else if (board[i][j] == WALL) g.drawImage(imgWall, i * 30, j * 30, null);
                else if (board[i][j] == COIN) g.drawImage(imgCoin, i * 30, j * 30, null);
            }
        }
        g.setColor(Color.WHITE);
        g.drawString("Moves: " + moves, 20, 650);
        g.drawString("Points: " + points, 100, 650);
        g.setColor(Color.WHITE);
        g.drawString("Press I to import your own level! Make sure the image file is 20x20", 20, 670);
        g.drawString("Each pixel represents something: Red = Wall, Green = Coin, White = Player", 20, 685);
        g.setColor(Color.RED);
        if (moves == 0)
            g.drawString("DONE! press R to play again!", 200, 650);
    }