Line 41 should read:
// If the player moved away without removing the text, remove it
// If the player moved away without removing the text, remove it
if ( ! isTouching(Player.class) ) { if (intersects(toShow)) { getWorld().removeObject(toShow); } return; }