Fixed behavior when player hits wall. Now it doesn't trespass it.