Implement food generation and food collision detection