Fixed tons of bugs, added improvements, tested on lot of contests