 class GameController {
     var Group_ID: String = "42"
     var LocalGroupState: GroupState? = nil
-    var CurrentVote: Vote? = nil
+    var CurrentVote: Vote
     var ItUserName: String = ""
     
     var parent: MainViewController
     
     init(parentView: MainViewController) {
         parent = parentView
+        CurrentVote = Vote()
         initializeCommunication()
     }
     

    
    func StartVote(Sender_User_ID: String, Asset_ID: String) {
        print("starting vote")
        let vote = Vote()
        vote.Group_ID = Group_ID
        vote.It_User_ID = LocalGroupState!.It_User_ID
        vote.Sender_User_ID = Sender_User_ID
        vote.Asset_ID = Asset_ID
        SaveVote(vote)
    }
    
    func VoteYes(vote: Vote) -> Bool {
        print("voting yes")
        vote.Yes += 1
        var done = false
        if vote.Yes == 2 {
            vote.Status = VoteStatusEnum.Pass.rawValue
            done = true
        }
        SaveVote(vote)
        return done
    }
    
    func VoteNo(vote: Vote) -> Bool  {
        print("voting no")
        vote.No += 1
        var done = false
        if vote.No == 2 {
            vote.Status = VoteStatusEnum.Fail.rawValue
            done = true
        }
        SaveVote(vote)
        return done
    }
    
    func SaveVote(_ vote: Vote) {
        EVCloudData.publicDB.saveItem(vote, completionHandler: {record in
            let createdId = record.recordID.recordName;
            EVLog("vote saveItem : \(createdId)");
        }, errorHandler: {error in

                return true
        }, insertedHandler: { item in
            EVLog("Vote inserted \(item)")
            self.CurrentVote = item
            self.StartVoteUI(vote)
//            self.parent.StartVote()
            // TODO
        }, updatedHandler: { item, dataIndex in
