added the code for random skill matrix generation