Moved Play Patern logic to PlayPattern.cpp.