public int GetCommand(Guid username)
 {
     if (LastCommand.ContainsKey(username))
     {
         return(LastCommand[username]);
     }
     else
     {
         return(-1);
     }
 }
        public void SetCommand(UndoRedoWrapper command)
        {
            if (LastCommand.ContainsKey(command.Command.Username))
            {
                int position = 0;

                for (int i = Counter; i >= 0; i--)
                {
                    if (command == Commands[i])
                    {
                        position = i;
                    }
                }

                LastCommand[command.Command.Username] = position;
            }
            else
            {
                LastCommand.Add(command.Command.Username, Counter);
            }
        }