Added horizontal collision with entities.