minor game manager refactoring and snake direction bug fix