Added loop checkbox, and appropriate checks where necessary so that Player does not crash.