Added pair to help the obstacle class, changed position to double