added marble detected performance(ratio). I am not sure about what does the state(1).x and state(1).y returns. I just used them as the detected marble centroid position. I am not sure how it works, please correct it.