2D OS independent game in Java