changed variables, added two functions

changed enemyCount in global and number function variables to match
with conditionals. added procedure and number function.