Refactored the code to create private methods for strike and spare and other.