small engine optimizations
some small game optimizations