Timer and AI

Made timer class and tested. Worked out more AI for animals