Put setting of stateid into base class
Add posibility to test game in editor