modified near ground checking code to use BlockPos. Cleaned up near ground code as well.