renamed to gameengine, added bunch of functions