object orientated programming tic tac toe assignment tea leaf