Playing hard to get can be helpful to an extent to make him miss you. However, do not overdo it and be constantly dismissive, rude, or absent. Instead, be true to your emotions, show appreciation and affection when you feel it, and spend the rest of your time prioritizing yourself. This way, things do not get toxic and will make him miss the moments when you were affectionate.