public static void Turn(string direction)
        {
            Direction directionEnum = Utility.GetEnumValueByName <Direction>(direction);

            if (Engine.Player.Direction == directionEnum)
            {
                return;
            }

            Engine.Move(directionEnum, false);
            UOC.WaitForIncomingPacket(new PacketFilterInfo(22), MOVEMENT_TIMEOUT);
        }
        private static bool Move(string direction, bool run)
        {
            Direction directionEnum = Utility.GetEnumValueByName <Direction>(direction);

            if (directionEnum == Direction.Invalid)
            {
                return(false);
            }

            try
            {
                bool result = Engine.Move(directionEnum, run);
                UOC.WaitForIncomingPacket(new PacketFilterInfo(22), MOVEMENT_TIMEOUT);
                return(result);
            }
            catch (IndexOutOfRangeException)
            {
            }

            return(false);
        }