Improves Snake AI and organizes game of life code