Click the gray button to open menu. Click on the food to change it. Click the green button to select it. Tap anywhere to place it. There is a delay after pressing the green button. Don't place items too fast otherwise you will break this. This is just a test for a big strategy game I'm working on.
Thanks to @MrTomec for his clone tutorial on youtube. Also thanks to @brothers_2 for a little help. Feel free to use this code.