I have been trying to figure out this problem for a while. My code works, but when it records the start and stop positions in my .txt file I notice that the end positions ar