Moved assertBounds
Leftover code removed in display.lua