Java 2D Game test