player's code to Playing cat and mouse