fix enemy.js and add game ending