Changed return type from bool to int in SMove function