Physics based game written in Java