import javax.swing.JFrame; 
import java.awt.*;
import java.awt.event.*; 

public class Game implements World {
  Circle circle; 
  public Game() {
    this.circle = new Circle(200, 200, 30, Color.WHITE);  
  }
  int ticks; 
  public void teh() { 
    this.ticks += 1; 
    // System.out.println( "world reports: " + ticks );
  }
  public void draw(Graphics g) { 
    this.circle.draw(g); 
  } 
  public void meh(MouseEvent e) { 
    System.out.println("Mouse event detected."); 
  } 
  public void keh(KeyEvent e) { 
    System.out.println( "You have typed character: " + e.getKeyChar() );     
    if (e.getKeyCode() == KeyEvent.VK_LEFT) {
      this.circle.move(-5, 0); 
    } else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
      this.circle.move( 5, 0);       
    } else {
      System.out.println( e ); 
      char c = e.getKeyChar(); 
      if (c == 'a') this.circle.move(-5, 0);
      else if (c == 'd') this.circle.move(5, 0); 
    }
  }  
  public static void main(String[] args) {
     BigBang b = new BigBang( new Game() ); 
     b.start(300, 400); 
  }
}