Add obstacle control and player collision.