public void paint(Graphics g) {
        super.paint(g);

      
        Graphics2D g2d = (Graphics2D)g;
        g2d.setColor(Color.white);
    	g2d.setFont(new Font("Ariel", Font.PLAIN, 20));
    	
        if (!gameStarted){
        	g2d.drawString("Press Space to Jump", 100, 100);
        }
        //g2d.rotate(Math.toRadians(10), (int)(bird.getX()), (int)(bird.getY()));
        g2d.drawImage(bird.getBird(), (int)(bird.getX()), (int)(bird.getY()), this);
        g2d.drawImage(pipes.getPipeUp(), px1, pipes.getUpY(), this);
        g2d.drawImage(pipes.getPipeDown(), px1, pipes.getDownY() - pipeDownLen, this);
     
        g2d.drawImage(pipes2.getPipeUp(), px2, pipes2.getUpY(), this);
        g2d.drawImage(pipes2.getPipeDown(), px2, pipes2.getDownY() - pipeDownLen, this);
        
        g2d.drawString("Score: " + score, width - 100, 20);
        
        Toolkit.getDefaultToolkit().sync();
        
        if (gameOver) {
        	g2d.drawString("Game Over!", 100, 100);
        	g2d.drawString("High Score:  " + highScore, 100, 120);
        	g2d.drawString("Press Enter to Retry.", 100, 250);
        	
        	switch (numGameOvers) {
        	
        	case 10: 
        		g2d.drawString("You still want to play??", 100, 200);
        	}
        }
        
        g2d.dispose();
    }