game object , map manager and game logic refactoring