adding rigidbody to player so that it collides with the walls