Added a bunch of functions.

PlaceXQueen/PlaceYQueen searchs in the x direction for the next queen to
place.