updated hw.scala
refactored handManager some more