Cleaned some server code. Added clean function to the 'GameManager'.
Fixed server crashes.