Added generate moves and fit move functions but they are not fully working