check if the sprite is going into something, if so, move the sprite back to where it was before it moved into it.