Added gamemanager structure
Finished all functionality