a java game engine based on sprite .