Refactor by adding players attribute.

Also moved initializer to the top.