added random ai
added reversed lookup table
added game loop