Fixed edge detection
Fixed movement delay on button click