Divided code into modules, added automated movement and random spawning food squre