corrected context and other errors in physics and game engine