the begining of a simple game ai