Refactors, fixes opponent playing consistency, and fixes jquery playover bug