Refactored a bit and created a random player

Code does not actually work yet.