added game_complete, fixed views play, added loop logic, database updates in controller