Added the function which checks if the extruder hit the metal bed