Update AppMain

IMPORTANT: included a memory cleanup after restart
Also implemented power list and added the power object to the game (without any randomization code)