seperate render and gameStep
decoupling game and render loop, not finished
finally implemented assigning rule layer, setup code should be cleaed up