Updated engine fullscreen functions and added engine.toggleFullscreen.