Method for getting moves in linear format