Fixed so that the trajectory lines always erase after boat moves and stops on click several times in a row. There was an indexing problemn before