added something to detect when a start or end point block is clicked, also fixed a thing or two