 			// If still not attacking, move!
 			playerPosition += playerPositionModifier;
 			if (!attacking) {
-				int moveAmount = (joystickTilt / 6.0);
+				moveAmount = (joystickTilt / 6.0);
 				if (DIRECTION) moveAmount = -moveAmount;
 				moveAmount = constrain(moveAmount, -MAX_PLAYER_SPEED, MAX_PLAYER_SPEED);
 				playerPosition -= moveAmount;

		}
	}
	updateStats();
	lives = 3; //min(3, lives + 1);
}

void nextLevel() {

	if (levelNumber > 0) --lives;
	if (lives == 0) {
		levelNumber = 0;
		lives = MAX_LIVES;
	}
	for (int p = 0; p < particleCount; ++p) {
		particlePool[p].Spawn(playerPosition);
