Added Block Reward Halving function to main.cpp