fixed color code
deleted 'isDead' variable
Refactoring and rewriting started