Formulate the search problem, that is,
find a representation (data structure) for states
find a representation (data structure) for actions
write down the initial state in your representation
develop a function computing the legal moves of each agent
develop a function computing the successor state resulting from executing a move in a state
develop a function deciding when a terminal state is reached
develop a function for deciding whether the agent has won the game