Extract game code and refactor Player logging