switchPlayer method ready but needs to be optimized.
Inserted the insertPlay method