Fixed build error!

clearPool() is not a method in UnitPool. I replaced it with clear(). I
am not sure if this was intended function!