working game engine and classes