prevent the count from going off the end of the level arrays