Updated navigation class to make sure logic is correct

Cleaned up the code by creating updateOdometry(), checkLineLeft() and
checkLineRight()