made the floor script a bit smarter.