Java Game Engine Skeleton