Update Main.cpp

tried fixing collision to process vertical collisions.