basic engine for running levels, managing entities