Update main.cpp

I have interchanged X-Axis and Y-Axis.