added castling

fixed some whitespace stuff.