World flipping

Basic implementation of world flipping system.