added move fn for o-rook, g-rook and o-queen
fixed syntax errors
Update main.js

fixed error on for loops
Merge pull request #31 from beck410/rook_move

Rook move