Corrected the absolotue position of the finger to take into account the starting position of the finger. Also added some tests in main