update player collision with walls