working solution, refactoring and refining checkWin and draw functions + adding animations and styling