Create main 2D game engine functions