Fixed a ton of bugs and added new gameplay mechanics.