old_contents: import { Card } from '../common/Card';
  import * as global from './munchkin.js';
  import { Player } from '../common/Player';
  import { load, create_lower, create_info, create_cards, create_buttons } from './load.js';
  
  export function over(obj)
  {
      obj.width *= 2;
      obj.height *= 2;
      obj.y = global.game.height - obj.height / 2;
      for (var i = obj.iter + 1; i < global.player.hand.length; i++) 
          global.cards[i].sendToBack();
      global.down_lower.sendToBack();
      for (var i = 0; i <= obj.iter; i++) 
          global.cards[i].bringToTop();
  }
  export function out(obj)
  {
      obj.width /= 2;
      obj.height /= 2;
      obj.y = global.game.height - obj.height / 2;
  }
  export function down(obj)
  {
      var oo = Card.byId(obj.key.substr(6));  
      if (oo.canBeWielded(global.player, global.table)){
          global.player.wield(obj.key.substr(6), global.table);
          console.log(global.player);
          global.cards[i].splise();
          global.player.hand[];
          global.cards[global.player.hand.length - 1] = undefined;
          create_crads();
      }
  }
new_contents: import { Card } from '../logic/Card';
  import { Player } from '../logic/Player';
  import * as global from './munchkin.js';
  import { load, create_lower, create_info, create_cards, create_buttons } from './load.js';
  
  export function over(obj)
  {
      obj.width *= 2;
      obj.height *= 2;
      obj.y = global.game.height - obj.height / 2;
      for (var i = obj.iter + 1; i < global.player.hand.length; i++) 
          global.cards[i].sendToBack();
      global.down_lower.sendToBack();
      for (var i = 0; i <= obj.iter; i++) 
          global.cards[i].bringToTop();
  }
  export function out(obj)
  {
      obj.width /= 2;
      obj.height /= 2;
      obj.y = global.game.height - obj.height / 2;
  }
  export function down(obj)
  {
      var oo = Card.byId(obj.key.substr(6));  
      if (oo.canBeWielded(global.player, global.table)){
          global.player.wield(obj.key.substr(6), global.table);
          console.log(global.player);
          global.cards[i].splise();
          global.player.hand[i].splise();
          global.cards[global.player.hand.length - 1] = undefined;
          create_crads();
      }
  }
subject: fix events.js