Added collision checks for ceiling and floor

Applied perpendicular collision checks for ceiling and floor