Updated obstacle avoidance and added hasLost variable
Added losing
Added tests for Location