The brake pedal switch does have input to the engine ecu and will do funny things if its messed up,
Cvt vehicles also rely on the accelerometer in the airbag ecu to determine how quick the car is accelerating or is climbing or descending a gradient.
Proceed to a good mechanic and have it sorted out, dont try to guess it.