Correcting the Shape movement

Included the actual speed of the shape, making it more accurate for edge
detection.