changed rules class to module, included the gameing process in rules