Implemented the check_front_sensor and move_backward functions.