Game of life implementation using FSM framework