collision detection working using 2 boolean arrays along with the
getTileProperty() method