Brings back code that prevent player walk on wall