Refactor game into separate controller and view