Fix the merge bug, add a less stupid AI, and more

Game now merges correctly tiles, the new AI chooses the best move (in depth 1), add management of the number of merge, and the code is nicer (... a bit)