moved game logic to model.coffee and added my first test