Lots of changes to gamestate,
added period, periodlength and num of periods.
also added game over conditions