Integration of Rueben Brown's code

Rueben's code has been integrated enabling play states.

Signed-off-by: KharonAlpua <kharonalpua@gmail.com>