Turn logic fixed for player without opponent and finished logic implemented
Winner added to finished template and few minor refactorings