Fixed bug with creation objects.
Partially fixed bug with player switching.