An attempt at making an AI using python (and some Ruby)