Snakes and Ladder board


my code is giving some seg fault.
But I am not able to find any