refactoring the games controller. Removed half of the respond html/json