some AI for the game (far from finished)