Refactored game play method by converting module to an object