Reorganized functions

change file name: game.js -> horserace.js
moved quoted codes in server.js to horserace.js

changed function & variable hierarchy- (make more sense now)
Create game, join game
Tried my best to merge the two branches
In Firefox I get multiple reference errors and there are some
functions in communicator.js that I think aren't implemented fully