Changed some data types.
Added level up logic.