added spawn and move phases
updated game loop