It's a typo: Global

You need to do a property for the movement, when you change the position, your property should check for walls in that direction and refuse to move if there is