That armour set looks like it was painted by the creators feet terrible . <| sep |> I can ' t understand how tech workers wouldn ' t vote for Bernie or Trump they both promised to kill the H 1 B program that turned once lucrative careers into dead end jobs . <| sep |> I would make a whole tic tac toe game , not just a state checker . What questions do you get asked during interviews , and what ' re your answers ? edit That global winner variable is pretty heinous . If you did decent OOP , you wouldn ' t need to check the state to see if it ' s valid , like your comment says in checkboardstate . checkboardstate , checkwinner , etc . shouldn ' t print anything . The calling function should do the printing . Mixing IO in with logic like this is bad . You shouldn ' t pass columns into checkandpopulatecolumn . It should use a local variable for that . It should work similarly to you row checking function , since they are so similar .