Create game successfully in the model and controller.
- Add attribute accessor methods to the Game model to allow player_score, opponent_score and opponent_id to be passed to the model without errors.
- Add a calculate_winner method to calculate the game's winner based on the above scores being passed in.
- Changed Game Factory to reflect this way of creating a game.
Fix error with winner_id calculation method in Game model.
- Pass player.id from controller to model using current_player helper provided by Devise
- Remove presence validation of winner_id from Game model. Test the presence of appropriate input attributes instead and the result of the calculate_winner method.
Check validity of a new Game record before saving it.
- Fix error when rendering dashboard if Game record isn't valid.
Add new tests for Game controller to test user authentication.
Merge branch 'jc-create-new-game' into master