Deleting duplicate function definitions; the functions were moved under handleTurn so that they could be written without 'this' infront of them