added rigidbody and collider

added rigidbody and collider to player and obstacles