implemented the grid to coord mapping and king/queen side castles