fixed util.java

- realized i wrote the tic_win method wrong
- re-wrote it