Function to increase speed after every 5 points/ Track the position of mouse cursor