Hopefully final attempt at fixing placement bug

Now the issue was that the reset function wasn't resetting properly, since
it was rotating then flipping, instead of vice versa. Now hopefully a
piece is reset to the way it should be after hypothetically arranging it.

Also rearranged the code for when to check if a player has moves left. If
only checked after they make a move, then if another player makes it so
they can no longer play, it wasn't detected. Now the check is before they
start, to see if any recent moves kicked them out of the game.

Also reports who won.

	modified:   blockus.js
Fixed bug when deselecting piece, added debug code

When deselecting a piece, the game would crash. This was because the game
was "selecting" a non existant piece. This has been fixed.

Some times when the game reaches the end, it seems like there's no more
moves for a player, but they can still play. Added debug code to see if
there really are available moves or not

	modified:   blockus.js