set up Main to have main method instead of jgame