Fixed problem where the character walked through walls