Revert "WIP: Reverse i and j coordinates"

This reverts commit 636308fdbf74095388ec85f0ec765532a2129f00.
Fix calculation of room center.