Javascript The Move Function Is Not Functioning As Expected Stack

Javascript The Move Function Is Not Functioning As Expected Stack