Update main.cpp

this subtracts 2 consecutive frames and calculated the center point of all the moving pixels