Wrote client-side portion of the game