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)