moved jframe to its own object, since extending it is pointless
centre game on screen