Merge branch 'master' into gh-pages
Basic Piece Highlight
Minor highlight fix
piece rotation, firefox compatibility

renamed players.js to pieces.js
2D array of grid objects created and initialized

Currently assembled section by section. Not yet using ascii variable
for initialization.
main.js touch up

moved context.strokeStyle out of draw(), removed unnecessary
context.stroke()
GRID

parse and setup grid from ascii, in board.js
switched from players-based to grid-based

also from x,y to row,col, where row == y and col == x
rules

Check if piece move is to a valid cell. And only show highlight if so.
input bugfix

fixed: when you release the mouse outside the canvas, it still thinks
you're dragging
Rules

- Only adjacent square moves
- Can't move into routed cells
- Can't move onto cell occ. by you or your teammate
More rules

- If routed, can only move to your own respawn
- Cannot move into opponent's win squares.
touchscreen scroll/zoom, google analytics

Re-enabled scroll/pinch-to-zoom on touchscreens (like any webpage) IF
you're not touching a piece.
Fixed click-on-empty-square-kills-everything bug
condensed movePiece() logic
Basic Routing

You can route an enemy piece, regardless of rotation.
Routing tweak

Routed pieces fill up in a nice order, from bottom left to top right
from each player's perspective.
Pieces can be pushed

Only 1 v 1 for now. Piece can disappear if pushed out of board or onto
other pieces.
More push-piece work

Pieces pushed off the board or into enemy pieces are routed.
Added Phalanx detection

Checks for adjacent pieces and adds them to selected phalanx array.