Hi! I'm MAZOON. Watch the story first, then try it yourself.
The player can't walk through walls! The move function makes sure x never leaves the map.