The server-side Javascript code for Eleven Giants that determines all game behavior.