my first attempt at a game in java