Implemented rendering text windows using composition.
Moved player setup related code to its own file.