Changing the game loop structure and working on projectile rendering