JS Fizzbuzz and Python Tic-tac-toe