fixes #33 fix bug that causes room mapping to screw up. used total room instead