Make entities stop rather than jump on top when colliding with tiles