Update main.cpp

add function can_move

description in google doc