Code for my Java Game