fix movement near walls
better walls check