Bugfixes. Diagonal portals now form properly.