bool closeEnough(float first, float second){ if(first <= second + 0.1f && first >= second - 0.1f){ return true; } return false; }