game working before code refactor