def fireAttack(button, x, y, shipList): global turnLabel global attackLabel if (Attack.checkHit(shipList, x, y) == True): changeColour(button, "red") attackLabel["text"] = "Attack Again!" else: changeColour(button, "grey") if shipList == Main.shipList1: turnLabel["text"] = "Player 2's turn" attackLabel["text"] = "" else: turnLabel["text"] = "Player 1's turn" attackLabel["text"] = ""