Changed weaponfiles to use new units and converted player object to prototype