use static method, remove some unused code in game