Fixed syntax errors

Known bugs:
- returns a tie when position 1 is played
- does not allow computer first move