some error in the previous main.cpp this is the correct one with the controls