changed petrification to consider player speed