Fixed some bugs and did some balancing.