updated sharp.erl to call a function using alarm_obstacle when there is an obstacle