Remove duplicated code in Game