modified cordinate of Block.collide() and used temporary variable at Block.coordinate()