First functional code

Earn XP mining ores.