finished js and mvp; added winner and tie checks and handles