Added vertical and horizontal collision detection to Entities