An army of ants aims to survive against an army of beetles using a transition model for movement, multiplication, and consumption