Added functionality to find all valid moves for a given color