Update Map.scala

Method canRotate operational