refactored advancement of game into tick()