added a small box of 3 pixels around the entity for better collision check