refactoring the main update loops to be more clear and decouple game's update and entities frame rates