Update Map.scala

Added method isValid to figure out when the game is over (when the "new" piece cannot be placed at the original point, which is only half-correct and could use some improvement, such as rotations to try to place it differently)