Added functionality to Player and Pile. Cleaned up some code.