I want the engine to be able to change direction
This isn't going to happen with an AC motor. In case you do not know the difference between AC and DC, with DC , the current flows in one direction only. Changing direction is as simple as reversing the polarity of the leads to the motor with a relay or H BRIDGE. With AC, the current flows in the positive direction during the positive phase (first 180 degrees) and in the opposite direction during the second half of the phase so it is flowing in both directions during every phase. There is no other way to tell you that what you are asking is impossible with an AC motor. If you don't know that you probably shouldn't be working on this kind of equipment. I suggest you find someone else to manage this project for you. It is dangerous for you to be working around such equipment without even the most basic knowledge of how it works. You are going to get yourself or someone else hurt.