add one parameter 'direct' to make the board as a directed graph

change compute_breath(int x, int y, char chess) to compute_breath(int
x, int y, char chess, int direct), so the board is directed graph.
maybe this design is useful for later.
waht the fuck?