Require aid refining a "Game Of Life"-esque project (Dead entities on the edges)

So, I started out this project trying to get some sort of RTS similarity, but it shifting half-way through from having AI hunt each other down, to just switching IDs back and forth based on neighboring “entities” (Similar to tiles). Some problems that I have are mostly that the “entities” around the edges don’t change state, regardless of whether they are surrounded by opposite-ID’d entities. This may have something to do with my using a tile system to create them, and the edges are nulls.

Anyways, I need help just refining this thing. It’s just a mini side project for my spare time, but I can’t seem to grasp this one thing. My project on Github is here: https://github.com/RyanMB97/Mini-RTS. Namely, the “EntityBehaviors” class, with a little bit of entanglement with the actual “Entity” class, which is used when creating them. They’re generated in the “Game” class, and rendered and ticked like normal object/tiles would in any other game/project.

This is getting rather long, but thanks in advance for help, it is much appreciated! Also, before I forget, the reason for the “Thread.sleep(500)” is so that I can watch the changes gradually.