New AI

This commit adds a new AI, which chooses a move first from a list of all
moves which capture an opposing piece, or if none are possible, from a
list of all legal moves. Additionally, some bug fixes and general
improvements of the code.