Refactored code to use a HantoPlayer class