S and Z tetraminos. Refactored code to handle input all on one line as per tests