Semantically rename game file
Move logic out of view and fix indentation