creating card action and player action handlers