Refactor mancala code into more files