implemented check and checkmate

1. implemented check and checkmate
2. changed scope so that piece's current position is true (otherwise
checkMate doesn't work)