Refactored to add games in; also wrote views