Don't assume the last guy used the proper color wires.
The only way to fix this at this point is to use a tester.
A 3 way switch is basically a single pole double throw switch. 3 way and 4 way switches never have an on-off embossed on their toggles. If there are four screws on the switch and the toggle handle has on-off on it, then it's not a 4 way.
All 3 way switches have one screw that is a different color. Usually black compared to brass for the remaining two. That darker colored screw is the key to getting it right. It will be the constant hot feed on one switch and the switch leg (which feeds the light) on the other switch. The other two wires are the travelers which only connect between the two switches. They can go on either of the brass screws. You can mix them up, it doesn't matter.
4 way switches only have the travelers passing through them. No switch leg or hot leg. They have two darker screws and two brass screws. Two travelers from one 3 way switch connect to the two black screws and two travelers from the other 3 way switch connect to the brass screws.
White should be the neutral and should be spliced and buried in the box. Not connected to the switch. But as I said, you don't always know what the "other" guy did so sometimes colors mean nothing.
I hope this helps and if you need more help, just ask.