Creaed check to make sure that a piece does not get put in an invalid location on board