Thank you for your comment
The original idea was to make a tower defense game using chess rules but ran out of time so just made it into a regular chess game