begin count state. need to refactor game module