implemented init and spawn in GameThread.java