turning game.js into an object design pattern

Signed-off-by: Brian E Tovar <betovar@leaflabs.com>