added player turn logic
added rival turn logic