Add check for pieces placed

There is now a check to make sure that if the player color does not have any more of a specific piece, it will not let him/her place that piece. Also added complementing tests.