You can get stuck at the wall, if you just run at the wall. If you use Unity, just search "not get stuck at walls" and you find an really easy way to fix this.