Modified players command

Restructured logic and changed stuffs, including arrays to ArrayLists to make it work better