Update main.js

fixed rook