changed colision detection between player and wall