Added player mask calculation to playing state