progress on unit test. Need to figure out why it breaks certain part of the game, though it doesn't really matter since this is only for unit tests