Games have been an integral part of human society since ancient times, serving…