Finished locking and added random opponent playing