Our entry for the codecup 2014 competition