Left, right, up, and down to move don't touch black or the guard. It is all possible.
IT WORKS AFTER AN ENTIRE HOUR OF TESTING, CODING, AND FIXING BUGS.