finite state machine model for the implementation of the AI for an oak tree