boundry looping works for enemies