added game ptr as states param
changes