basic cleaning and prototype of game routine