@Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Pixel[][] pixels = game.getDisplay();
        for (Pixel[] row : pixels) {
            for (Pixel pixel : row) {
                game.getPixelType(pixel.id).draw(pixel, game, g);
            }
        }
        List<Animation> animations = game.getAnimations();
        
        for (Animation a : animations) {
            a.draw(g);
        }
        frames++;
    }