Refactored all objects to GameObject class.