The different types of moves all need to be programmed in the game. It's like chess, eventually they will get it right. They should hire the chess programmer for this game, it would solve all of OOTP's logic problems:
"Houdini 3 is The Terminator among the many chess engines available at the moment. It is estimated that it has an unprecedented monstrous rating of 3335. In comparison, Magnus Carlsen recently landed a world record for humans on 2861. That means the computer program is expected to win 99 (!) out of 100 games against the world number one."
SOURCE:
http://en.chessbase.com/post/nettavi...st-che-program