Hey there @Madhav1008! Welcome to the community! There’s many ways to go about all of this, so I’ll leave some resources, and you can choose whichever one suits you best.
Chess tutorial series (somewhat dated):
Chess Board Logic simplified but the author has more videos on his game (but it’s a devlog for a different game):
A thread where I also provided some other chess related resources:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.