added basic architecture required to write an AI agent. Also removed user input events