make sure walls stay withing bounds