safetystop()
function safetystop() {
var motion = document.getElementById("atnbgmotion")
motion.innerHTML = 0 + motion.innerHTML
setTimeout (startmotion,100)}
function startmotion() {
var motion = document.getElementById("atnbgmotion")
var m = motion.innerHTML[1]
if (m === "l") {leftmotion()}
if (m === "r") {rightmotion()}
if (m === "u") {upmotion()}
if (m === "d") {downmotion()}