basics for castling, adding global declares script