Server handles all game functions.