win functionality completely implemented save for diagonals