fixed more bugs and added powerup phase.