Simple game development in Java