Use the intrinsic lock of the object "entities"
Merge
Merge pull request #2 from cmascart/master

Update Gridworld.java