imported player input checking logic from previous iteration. diagonal win test now passing.