Implementation of knight's tour problem, simply for practicing Erlang