You certainly want to add some diagonals to that frame. If it's staying in the same place then bolting it to the wall is an easy (though not ideal) way to constrain it.

Suggestion.. design the rest of the machine before you continue making it.