Phase 2 updated and use of next phase instead of big gameLoop