Adding tests.
Typing more structs for better readability
Some bug fixes after testing and writing more tests
Finishing tests for replicator_game.c.
Fixing some errors and adding more tests.